import { BaseWindow } from "../../../component/window/BaseWindow";
import { Language } from "../../../../extend/language/Language";
import { PetDetailPanel } from "./PetDetailPanel";
import { SPetInfo } from "../../../../Message/Game/SPetInfo";
type int = number;
//class PetViewWindow
    
    export  class PetViewWindow extends BaseWindow
    {
        constructor()
        {
            super();
            setSize(620, 455);
            title = Language.getString(54317);
            titleHeight = 30;
            this.init();
            return;
        }

        /* internal  */init(): void
        {
            this._detailPanel = new PetDetailPanel();
            this._detailPanel.x = 19;
            this._detailPanel.y = 43;
            this._detailPanel.showViewMode();
            this.addChild(this._detailPanel);
            return;
        }

        public updatePetInfoPanel(arg1: SPetInfo): void
        {
            this._detailPanel.updateByPetInfo(arg1);
            return;
        }

        public /* override */ show(arg1: int=0, arg2: int=0): void
        {
            super.show();
            return;
        }

        /* internal */ /* var */_detailPanel: PetDetailPanel;
    }
